﻿/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace DaveSexton.DocProject.Sandcastle.TopicManagement
{
	public sealed class TopicMetadataCollection : KeyedCollection<string, TopicMetadata>
	{
		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="TopicMetadataCollection" /> class.
		/// </summary>
		public TopicMetadataCollection()
			: base(StringComparer.Ordinal)
		{
		}
		#endregion

		#region Methods
		protected override string GetKeyForItem(TopicMetadata item)
		{
			return item.TopicId;
		}
		#endregion
	}
}
